set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)

set(arm_gcc_path /usr/local/arm/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf)
set(CMAKE_C_COMPILER ${arm_gcc_path}/bin/arm-none-linux-gnueabihf-gcc)
set(CMAKE_CXX_COMPILER ${arm_gcc_path}/bin/arm-none-linux-gnueabihf-g++)

# set(CMAKE_FIND_ROOT_PATH /home/cloud/linux/curl_arm_build/curl-8.8.0/curl_install/)


# set(CMAKE_LIBRARY_PATH /home/cloud/linux/curl_arm_build/curl-8.8.0/curl_install/lib)
# set(CMAKE_INCLUDE_PATH /home/cloud/linux/curl_arm_build/curl-8.8.0/curl_install/include)
set(CMAKE_FIND_ROOT_PATH /usr/local/arm/curl)
set(CMAKE_LIBRARY_PATH /usr/local/arm/curl/lib /usr/local/arm/openssl/lib64)
set(CMAKE_INCLUDE_PATH /usr/local/arm/curl/include)

 
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

# Set compiler flags
SET(CMAKE_CXX_FLAGS ${COMMON_FLAGS} -std=c++17)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")